package Day20;

public class Text1 {
    public static void main(String[] args) {
        HspMethod h = new HspMethod();
        String res = h.showScore("小玉",2,3,10,10,10);
        System.out.println(res);
    }
}


class HspMethod{
    public String  showScore(String name, int...score){
        int res = 0;
        for(int i = 0; i < score.length; i++){
            res += score[i];
        }
        return "姓名是" + name + ", 总成绩是" + res;
    }
}